/**
 * @filename:AgentManage 2023-5-10
 * Copyright(c) 2022 Wonder Co. Ltd. 
 * All right reserved. 
 */
package com.wonder.app.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.FieldFill;

/**   
 * @Description:TODO(管理费分成实体类)
 * 
 * @author: Wonder
 * 
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sn_agent_manage")
@ApiModel(value="sn_agent_manage对象", description="管理费分成表")
public class AgentManage extends Model<AgentManage> {

	private static final long serialVersionUID = 1683685262858435L;
	
	@TableId(value ="id", type = IdType.AUTO)
	@ApiModelProperty(name = "id" , value = "编号")
    private Long id;
    
    @TableField(value = "uid") 	
	@ApiModelProperty(name = "uid" , value = "用户ID")
    private Long uid;
    
    @TableField(exist = false)
	@ApiModelProperty(name = "user_real_name" , value = "姓名")
    private String user_real_name;
    
    @TableField(value = "capital") 	
	@ApiModelProperty(name = "capital" , value = "配资ID")
    private Long capital;
    
    @TableField(value = "number") 	
	@ApiModelProperty(name = "number" , value = "交易数量")
    private Double number;
    
    @TableField(value = "manage") 	
	@ApiModelProperty(name = "manage" , value = "管理费")
    private Double manage;
    
    @TableField(value = "balance") 	
	@ApiModelProperty(name = "balance" , value = "余额")
    private Double balance;
    
    @TableField(value = "vouchers") 	
	@ApiModelProperty(name = "vouchers" , value = "代金券")
    private Double vouchers;
    
	@TableField(value = "create_time",fill=FieldFill.INSERT) 
	@ApiModelProperty(name = "create_time" , value = "交易时间")
    private Date create_time;
    
    @TableField(value = "remark") 	
	@ApiModelProperty(name = "remark" , value = "备注信息")
    private String remark;
    
    @TableField(value = "agent") 	
	@ApiModelProperty(name = "agent" , value = "代理商ID")
    private Long agent;
    
    @TableField(value = "staff") 	
	@ApiModelProperty(name = "staff" , value = "员工id")
    private Long staff;
    
    @TableField(value = "mother") 	
	@ApiModelProperty(name = "mother" , value = "母账户")
    private Long mother;
    
    @TableField(value = "upagent") 	
	@ApiModelProperty(name = "upagent" , value = "上级代理")
    private Long upagent;
    
    @TableField(exist = false)
	@ApiModelProperty(name = "user_name" , value = "昵称")
    private String user_name;
    
    @TableField(exist = false)
	@ApiModelProperty(name = "user_phone" , value = "电话")
    private String user_phone;
    

	@Override
    public Serializable pkVal() {
        return this.id;
    }
   
}
